/*
Author: Dave Lenz
Creation date: 15 jun 2009
 */
package nl.ypmits.utils.as3.view.bug {
	import flash.display.Sprite;

	public class BugTest extends Sprite {
	/*
		private var items : Array = new Array( );
		public var stepx : Number = 0;
		public var stepy : Number = 0;
		public var cw : Number = 0;
		public var scope : Object;
		private var bounds : Rectangle;

		public function BugTest()
		{
			bounds = new Rectangle( 10, 10, stage.stageWidth - 20, stage.stageHeight - 20 );
			addBugs( 10 );
		}

		
		public function addBugs( numBugs : Number ) : void
		{
			for (var i : int = 0; i < numBugs ; i++) 
			{
				var b : Bug = new Bug( stepy, cw, stage, bounds );
				addChild( b );
				items.push( b );
				b.start( );
			}
		}
		
		
		public function killbug() : void
		{
			var i : int = items.length - 1;
			removeChild( Bug( items[i] ) );
			items.pop( );
		};

		
		public function killbugs() : void
		{
			for (var i : int = 0; i < items.length ; i++) 
			{
				removeChild( Bug( items[i] ) );
			}
			items = new Array( );
		};
	*/
	}
}
